// chartworker.h
#ifndef CHARTWORKER_H
#define CHARTWORKER_H

#include <QObject>
#include <QTimer>
#include <QtCharts/QLineSeries>

QT_CHARTS_USE_NAMESPACE

class ChartWorker : public QObject
{
    Q_OBJECT
public:
    explicit ChartWorker(QObject *parent = nullptr);
    void start();

signals:
    void updateChart();

private:
    QTimer *chartUpdateTimer;
};

#endif // CHARTWORKER_H
